package com.kingwang.training.designpattern.flyweight.bo;

import lombok.Getter;

/**
 * 黑棋
 * 具体享元
 */
public class BlackPieces implements ChessPieces {
    @Getter
    private String color;

    BlackPieces() {
        this.color = "黑";
    }

    @Override
    public void move(ChessBoardPosition position) {
        System.out.println(this.color + "棋 落在了 (" + position.getRow() + ", " + position.getColumn() + ")上");
    }
}
